package com.athena.crm.domain.bo;

import com.athena.common.core.validate.AddGroup;
import com.athena.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.athena.common.core.domain.BaseEntity;

/**
 * CRM线索池业务对象 crm_clue_pool
 *
 * @author ruoyi
 * @date 2023-09-10
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class CrmCluePoolBo extends BaseEntity {

    /**
     * 主键id
     */
    @NotNull(message = "主键id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 线索id
     */
    @NotNull(message = "线索id不能为空", groups = { EditGroup.class })
    private String clueId;

    /**
     * 姓名
     */
    @NotBlank(message = "姓名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 手机
     */
    @NotBlank(message = "手机不能为空", groups = { AddGroup.class, EditGroup.class })
    private String phone;

    /**
     * 公司
     */
    @NotBlank(message = "公司不能为空", groups = { AddGroup.class, EditGroup.class })
    private String company;

    /**
     * 线索来源
     */
    @NotBlank(message = "线索来源不能为空", groups = { AddGroup.class, EditGroup.class })
    private String cluesSources;

    /**
     * 前负责人
     */
    @NotBlank(message = "前负责人不能为空", groups = { AddGroup.class, EditGroup.class })
    private String formerHead;

    /**
     * 前所属部门
     */
    @NotBlank(message = "前所属部门不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long formerDeptId;

    /**
     * 最新转入时间
     */
    @NotNull(message = "最新转入时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date lastIntoTime;


}
